﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;

namespace ShevaEngine.Core.Modules.Models
{
    /// <summary>
    /// Informace o VBO.
    /// </summary>
    public class ShevaModelBuffer
    {
        /// <summary>Vertex declaration.</summary>
        public VertexElement[] VertexElements;
        /// <summary>Vertex buffer content.</summary>
        public List<Byte> VertexBufferContent;        
        /// <summary>Pocet vrcholu.</summary>
        public Int32 VerticesCount;
        /// <summary>Vertex stride.</summary>
        public Int32? VertexStride;

        /// <summary>Element size.</summary>
        public IndexElementSize ElementSize;
        /// <summary>Index buffer content.</summary>
        public List<Byte> IndexBufferContent;
        /// <summary>Pocet indexu.</summary>
        public Int32 IndicesCount;

        /// <summary>
        /// Konstruktor.
        /// </summary>
        public ShevaModelBuffer()
        {
            this.VertexBufferContent = new List<byte>();
            this.IndexBufferContent = new List<byte>();
        }
    }
}
